package cate.game.db;

import cate.game.db.facade.*;
import cate.game.framework.ModuleMan;

/**
 * dao包装类管理
 */
public class DbFacadeManager extends ModuleMan {

    public GameKvDaoFacade kv;

    public MailBoxDaoFacade mailBox;

    public RankDaoFacade rank;

    public FriendBoxDaoFacade friendBox;

    @Override
    public void initDependent() throws Exception {
        kv = new GameKvDaoFacade(game);
        mailBox = new MailBoxDaoFacade(game.facilities.getMongo().mailBox);
        rank = new RankDaoFacade(game.facilities.getMongo().rank);
        friendBox = new FriendBoxDaoFacade(game.facilities.getMongo().friendBox);
    }
}
